'''
Created on Jan 25, 2013


@author: dexen
'''

from individual import Individual

def dev_cond(ind):
    assert isinstance(ind, Individual)
    return ind.is_alive() and ind.genotype != None and ind.phenotype == None

def similarity_cond(ind):
    assert isinstance(ind, Individual)
    return ind.is_alive() and ind.phenotype != None and ind.similarity == None

def feedback_cond(ind):
    assert isinstance(ind, Individual)
    return ind.is_alive() and ind.similarity != None
